/**
 * 不同环境接口域名不同
 */
let _domain = 'http://localhost:8080/';
let _uploadUrl = 'https://cs.updates.xin/v1/uploadTest';
if (process.env.NODE_ENV == 'development') {
    _domain = 'http://localhost:8080/';
    _uploadUrl = 'https://cs.updates.xin/v1/uploadTest';
} else if (process.env.NODE_ENV == 'production') {
    _domain = 'http://localhost:9001/';
    _uploadUrl = 'https://cs.updates.xin/v1/uploadTest';
}

/**
 * 域名环境
 */
export const domain = _domain

/**
 * 接口请求地址
 */
export const baseURL = domain+'api/'

/**
 * 图片前缀
 */
export const imgBaseUrl = 'http://images.cangdu.org/'

/**
 * 图片上传接口前缀
 */
export const uploadUrl = _uploadUrl

/**
 * jsonp默认选项
 */
export const jsonpOption = {
    "param": 'jsonpCallback'
}

/**
 * 接口成功统一返回状态
 */
export const RES_OK = 0